package com.msdemo.goods.service.client.fallback;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import com.msdemo.goods.service.client.OrderServiceClient;

/**
* @comments
* @author  zg
* @date 2018年8月26日
*/
//@Component
public class OrderServiceFallback implements OrderServiceClient{
	
	private Logger logger = LogManager.getLogger(this.getClass());
	
	@Override
	public String createOrder(@RequestParam(value = "userName", required = true) String userName,
			   @RequestParam(value = "goodsId", required = true) String goodsId) {
		logger.info("OrderServiceClientFallback......");
		return "createOrder fallback!";
	}

	
}
